#include "Writer.h"
#include "Server.h"

void Writer::Work()
{
	if(!m_sock.OpenClient(m_IP, m_port))
	{
		return;
	}

	Networking::SockMsg msg;

	if(!m_sock.Receive(&msg))
		return;

	if(RecvGM(msg))
	{
		OUT_STRING("processed a message, checking for another...");
	}

	//return true;
}

void Writer::Set( const std::string& IP, int port )
{
	m_IP = IP;
	m_port = port;
}
